package org.example.basic.day05;

public class Demo01异常 {
    public static void main(String[] args) {
        try {
            int a=10/0;
        }catch (Exception e){
            System.out.println(e.getMessage());
            //jvm退出时finally不会执行
            System.exit(0);
        }finally {
            System.out.println("finally一定会执行");
        }
        System.out.println("程序继续执行");

    }
}
